package com.tlvip.tlvipweb.filter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * <p>description：</p>
 * <p>copyright： copyright(C)2016-2099</p>
 * <p>Life is short,we need passion</p>
 * <p>Summary： </p>
 * <p>instructions： </p>
 * Date 3/7/21</p>
 * Author mac
 *
 * @version 1.0
 */
@Slf4j
//@Order(1)
//@WebFilter(urlPatterns = "/*", filterName = "reqResFilter1")
public class ReqResFilter1 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
            ServletException {
        log.info("=============自定义过滤器1============");
        chain.doFilter(request, response);

    }

    @Override
    public void destroy() {

    }
}
